estimate the area under the graph using four approximating rectangles and right endpoints